﻿package app.controller 
{
	import app.view.IntroMediator;
    import app.view.StageMediator;
	import flash.display.DisplayObject;
    import flash.display.Stage;
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;
    import app.model.*;
    import app.ApplicationFacade;
    
    /**
    * author lzyy
    * Email:healdream@gmail.com
    * Blog:http://lab.lzyy.name/blog
    */
    public class StartupCommand extends SimpleCommand
    {
        public function StartupCommand() 
        {
            
        }
        
        override public function execute(note:INotification):void
        {
            var root = note.getBody() as DisplayObject;
            facade.registerProxy(new StageProxy(root.stage));
            facade.registerMediator(new StageMediator(root));
            
			facade.registerProxy(new DataProxy());
        }
        
    }
    
}